import request from '@/utils/request'
export function getDepartmentListApi() {
  return request({
    url: '/company/department',
    method: 'get'

  })
}

export const getDepartmentManagerApi = () => {
  return request({
    url: '/sys/user/simple',
    method: 'get'

  })
}
export const getDepartmentInfoApi = (id) => {
  return request({
    url: '/company/department/' + id,
    method: 'get'

  })
}
export const addDepartmentApi = (data) => {
  return request({
    url: '/company/department',
    method: 'post',
    data

  })
}
export const editDepartmentApi = (data) => {
  return request({
    url: '/company/department/' + data.id,
    method: 'put',
    data

  })
}
export const delDepartmentApi = (id) => {
  return request({
    url: '/company/department/' + id,
    method: 'delete'

  })
}

